package score;


import games.Game;

import java.util.Timer;
import java.util.TimerTask;

import score.LinearCalculator;
import score.ScoreCalculator;


public class ScoreTest {

	public static void main(String[] args) {
		
		Timer timer = new Timer();
				
		final ScoreCalculator score = new LinearCalculator( new Game() {
			@Override
			public void start() {
			}
			
			@Override
			public void resume() {
			}
			
			@Override
			public void pause() {
			}
			
			@Override
			public boolean isRunning() {
				return true;
			}
		});
		
		score.start();
		
		timer.scheduleAtFixedRate(new TimerTask(){
			
			@Override
			public void run() {
				System.out.println( score.getScore() );
			}
		}, 0,500);
	}
}
